<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>折叠工具 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Accordion Tools">折叠工具</h2>
	<p title="Click the tools on top right of panel to perform actions.">　　点击面板右上角的工具可执行相应操作。</p>
	<div style="margin:20px 0 10px 0;"></div>
	<div class="easyui-accordion" style="width:500px;height:300px;">
		<div title="&nbsp;关于" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
			<h3 style="color:#0099FF;" title="Accordion for jQuery">jQuery 折叠</h3>
			<p title="Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.">　　折叠是 jQuery easyui 框架的一部分。可助你轻松定义网页上的折叠组件。</p>
		</div>
		<div title="&nbsp;帮助" data-options="iconCls:'icon-help'" style="padding:10px;">
			<p title="The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.">　　折叠允许提供多个面板并同时显示一个或多个。每个面板具有对展开和收缩的内置支持。点击面板头可展开或收缩该面板体。面板内容可通过定义『href』属性来由 ajax 加载。用户可定义一个能被选定的面板，如未指定则默认首个。</p>
		</div>
		<div title="数据网格" style="padding:10px" data-options="
				selected:true,
				tools:[{
					iconCls:'icon-reload',
					handler:function(){
						$('#dg').datagrid('reload');
					}
				}]">
			<table id="dg" class="easyui-datagrid" 
					data-options="url:'datagrid_data1.json',method:'get',fit:true,fitColumns:true,singleSelect:true">
				<thead>
					<tr>
						<th data-options="field:'itemid',halign:'center'"><h title='Item ID'>物料编码</h></th>
						<th data-options="field:'productid',halign:'right'"><h title='Product ID'>品</h></th>
						<th data-options="field:'productname'"><h title='Product Name'>名</h></th>
						<th data-options="field:'listprice',align:'right',halign:'center'"><h title='List Price'>清单价格</h></th>
						<th data-options="field:'unitcost',align:'right',halign:'center'"><h title='Unit Cost'>成本单价</h></th>
						<th data-options="field:'attr1',halign:'center'"><h title='Attribute'>物料属性</h></th>
						<th data-options="field:'status',align:'center'"><h title='Status'>状态</h></th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
</body>
</html>